package com.csun.cmny.provider.model.dto.disinfection;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class DisinfectionRecordDto extends BaseQuery {
    //消毒区域id
    private Integer taskId;

    //消毒照片
    private String image;

    //备注
    private String remark;

    //护工名
    private String creator;

    //开始查询时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String startQueryTime;

    //结束查询时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String endQueryTime;

    //消毒类型
    private Integer typeId;

    //楼栋id
    private Integer buildId;

//    //老人id
//    private Long oldmanId;
//
//    //楼栋床号
//    private String location;

    //资产编号
    @NotNull(message = "{CM.disinfeciton.task.no.null}")
    private String serviceItemNo;

    //消毒区域id
    @NotNull(message = "{CM.disinfection.task.id.null}")
    private List<Integer> taskIds;

    private List<Integer> typeIds;
}
